import io from 'api/io.js'
// 学员管理
export const findUserPage = async (params: any) => await io.post(io.findUserPage, params)
export const batchUpdSta = async (params: any) => await io.post(io.changeAuthUserStatus, params)
export const resetPass = async (params: any) => await io.post(io.resetPass, params)
export const updateAuthUser = async (params: any) => await io.post(io.updateAuthUser, params)
// export const detailUser = async (params: any) => {
//     let res = await io.post(io.detailUser, params)
//     if (res.data.success) {
//         if (res.data.data.type === '0') {
//             res.data.data.sectionList = res.data.data.sectionList[0]
//         }
//         return res
//     }
// }

// export const findMedalCategoryPage = async (params: any) => await io.post(io.findMedalCategoryPage, params)
// export const findMedalItemPage = async (params: any) => await io.post(io.findMedalItemPage, params)
// export const findUserItemPageRela = async (params: any) => await io.post(io.findUserItemPageRela, params)
// export const updateCategory = async (params: any) => await io.post(io.updateCategory, params)
// export const updateMedalItem = async (params: any) => await io.post(io.updateMedalItem, params)
// export const DetailCategory = async (params: any) => await io.post(io.DetailCategory, params)
// export const DetailItem = async (params: any) => await io.post(io.DetailItem, params)

// export const findUserFeedbackPage = async (params: any) => await io.post(io.findUserFeedbackPage, params)
// export const delUserFeedback = async (params: any) => await io.post(io.delUserFeedback, params)
// export const changeFeedbackStatus = async (params: any) => await io.post(io.changeFeedbackStatus, params)
// export const delComment = async (params: any) => await io.post(io.delComment, params)
// export const findCommentPage = async (params: any) => await io.post(io.findCommentPage, params)
// export const verComment = async (params: any) => await io.post(io.verComment, params)

